<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<style type="text/css">
 .td-name {
	 color: #555;
	 /* width: 120px; */
	 min-width: 100px;
	 background: #fafafa;
	 text-align: right;
	 font-weight: normal;
	 line-height: 23px;
 }
</style>


<form:form commandName="model" cssClass="validate" id="constractForm"
	action="constract/tmc/save">
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">合同名称：</td>
				<td class="td2"><form:input  path="constractName" cssClass="required"/></td>
				<td class="td2"></td>
				<td class="td-name" style="text-align:right">关联系统名称：</td>
					<%--<form:input path="associateSysId" cssClass="required"/>--%>
				<td class="td2" colspan="2" style="width:175px;">
					<input type="hidden" id="icdCategoryId" field="icd_category_name" op="cn" />
					<isperp:treeSelector
						displayValueCssStyle="width:175px;" onlySelectLeaf="false"
						url="incident/category/getTree" id="icdCategorySelector"
						name="associateSysId" displayValue="" valueColumn="associateSysId"
						valueControlId="associateSysId"></isperp:treeSelector>
					<%--<input type="hidden" id="icdCategoryId"
						   field="icd_category_name" op="cn" /> <isperp:treeSelector
						displayValueCssStyle="width:144px;" onlySelectLeaf="false"
						url="incident/category/getTree" id="icdCategorySelector"
						name="text" displayValue="" valueColumn="text"
						valueControlId="icdCategoryId"></isperp:treeSelector>--%>

					<%--<a onclick="$('#icdCategoryId').val('');$('#icdCategorySelector').val('');"
							class="nui-txt-link ">清除</a>--%>
				</td>
			</tr>
			<tr>
				<td class="td1">合同编号：</td>
				<td class="td2"><form:input path="constractCode" cssClass="required" placeholder="GTMC编号"/></td>
				<td class="td2"></td>
				<td class="td-name">TMC编号：</td>
				<td class="td2" colspan="2">
					<form:input path="tmcCode" style="margin-right:15px;" placeholder="TMC编号" />
				</td>
			</tr>
			<tr>
				<td class="td1">合同性质：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_PROPERTY" name="constractProperty" id="constractProperty"
						dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.constractProperty}"/>
				</td>
				<td class="td2"></td>
				<td class="td2" >
					<div class="td-name">关联特采单号：</div>
				</td>
				<td class="td2" colsapn="2">
					<form:input path="tcOrderId" style="margin-right:36px;"/>
				</td>
			</tr>
			<tr>
				<td class="td1">合同类别：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_ACCESS_TYPE" name="constractAccessType" id="constractAccessType"
						dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.constractAccessType}"/>
				</td>
				<td class="td2"></td>
				<td class="td-name">合同分类：</td>
				<td class="td2" colsapn="2">
					<form:input path="constractClassify" style="margin-right:36px;"/>
					<isperp:dictSelector typeCode="CONSTRACT_CALSSIFY" name="constractClassify" id="constractClassify"
										 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.constractClassify}"/>
				</td>
			</tr>
			<tr>
				<td class="td1">合同有效期：</td>
				<td class="td2" colspan="5" style="vertical-align: center;">
					<form:input path="validStart" type="date" cssClass="date" cssStyle="width:175px" />
					<span>&nbsp;&nbsp;起&nbsp;&nbsp;</span>
					<form:input path="validEnd" type="date" cssClass="date" cssStyle="width:175px" />
					<span>&nbsp;&nbsp;止</span>
				</td>
			</tr>
			<tr>
				<td class="td1">合同周期：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_CYCLE" name="constractCycle" id="constractCycle"
						dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.constractCycle}"/>
				</td>
			</tr>
			<tr>
				<td class="td1">合同类型：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_TYPE" name="constractType" id="constractType"
						dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.constractType}"/>
				</td>
				<td class="td1">支付类型：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_PAY_TYPE" name="payType" id="payType"
						dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.payType}"/>
				</td>
				<td class="td1">支付频率：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_PAY_FREQUENCY" name="payFrequency" id="payFrequency"
						 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.payFrequency}"/>
				</td>
			</tr>
			<tr>
				<td class="td1">合同金额：</td>
				<td class="td2"><form:input path="constractMoney" /></td>
				<td class="td1">币种：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_MONEY_TYPE" name="moneyType" id="moneyType"
						 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.moneyType}"/>
				</td>
				<td class="td1">关联当月汇率：</td>
				<td class="td2"><form:input path="parities" /></td>
			</tr>
			<tr>
				<td class="td1">本金：</td>
				<td class="td2"><form:input path="capital" /></td>
				<td class="td1">税金明细：</td>
				<td class="td2" colspan="3" style="vertical-align: center;">
					<form:input class="taxUnit" path="cityTax" />
					<form:input class="taxUnit" path="addTax" />
					<form:input class="taxUnit" path="educationTax" />
					<form:input class="taxUnit" path="localEducationTax" />
				</td>
			</tr>
			<tr>
				<td class="td1">合同单价：</td>
				<td class="td2"><form:input path="constractSaleMoney" /></td>
				<td class="td1">关联数量：</td>
				<td class="td2"><form:input path="associations" /></td>
			</tr>
			<tr>
				<td class="td1">TMC侧部门：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_TMC_SUB_DEPT" name="tmcSubDept" id="tmcSubDept"
						 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.tmcSubDept}"/>
				</td>
				<td class="td1">TMC侧联络担当：</td>
				<td class="td2"><form:input path="tmcSubPrincipal" /></td>
			</tr>
			<tr>
				<td class="td1">GTMC部门：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_GTMC_DEPT" name="gtmcDept" id="gtmcDept"
						 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.gtmcDept}"/>
				</td>
				<td class="td1">所属科系：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CONSTRACT_ASSOCIATE_OFFICE" name="associateOffice" id="associateOffice"
						 dataWidth="187px" hasEmptyValue="false" dictCssClass="required" selectedValue="${model.associateOffice}"/>
				</td>
				<td class="td1">所属担当：</td>
				<td class="td2"><form:input path="principal" /></td>
			</tr>
			<tr>
				<td class="td1">备注描述：</td>
				<td class="td2" colspan="5"><form:textarea style="height:126px" path="description" /></td>
			</tr>
			<tr>
				<td class="td1">附件：</td>
				<td class="td2">
					<isperp:uploader sourceId="${model.id }" id="constractFiles" />
				</td>
			</tr>
		</tbody>
	</table>
</form:form>
 
<isperp:buttonList>
	<button class="submit nui-mainbtn" onclick="isperp.submitForm();">保存</button>
</isperp:buttonList>


